package xp.ass.imitate.express.meta;

import lombok.Getter;
/**
 * @author chent3
 * @date 2024/8/23
 */

@Getter
public enum XTokenKind {

    LPAREN("("),

    RPAREN(")"),

    COMMA(","),

    HASH("#"),

    COLON(":"),

    DOT("."),

    LQUOTE("["),

    RQUOTE("]"),

    LCURLY("{"),

    RCURLY("}"),

    ADD("+"),

    IDENTIFER,


    ;

    final char[] tokenChars;
    private final boolean hasPayload;

    private XTokenKind(String tokenString){
        this.tokenChars = tokenString.toCharArray();
        this.hasPayload = this.tokenChars.length == 0;
    }

    private XTokenKind(){
        this("");
    }
}
